<%@ taglib prefix="iwebmvc" uri="http://tags.iwebmvc.com" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %>
<c-rt:set var="sessionUser" value="<%= org.internna.iwebmvc.security.UserManager.SESSION_USER %>" />
<div dojoType="dijit.layout.BorderContainer" gutters="false">
    <div dojoType="dijit.layout.AccordionContainer" region="top" style="height:25%">
        <div dojoType="dijit.layout.AccordionPane" selected="true" title="<iwebmvc:message argMessage="ui.common.tasks" />">
            <div style="text-align:center;width:100%">
                <iwebmvc:hide requiredRoles="ROLE_PROJECT_CREATOR">
                    <iwebmvc:button label="ui.newproject" buttonCssStyle="text-align:center;width:160px">
                        resetProjectData("nproject");
                        openPopup("newprojectform");
                    </iwebmvc:button>
                </iwebmvc:hide>
            </div>
        </div>
        <div dojoType="dijit.layout.AccordionPane" title="<iwebmvc:message argMessage="ui.common.settings" />">
             <div style="text-align:center;width:100%;">
                 <iwebmvc:hide requiredRoles="ROLE_USER">
                    <iwebmvc:button label="ui.profile.edit" buttonCssStyle="text-align:center;width:160px">
                        openPopup("editprofileform");
                    </iwebmvc:button>
                </iwebmvc:hide>
            </div>
        </div>
    </div>
    <div dojoType="dijit.layout.ContentPane" region="center">&nbsp;</div>
    <div dojoType="dijit.layout.ContentPane" region="bottom" style="height:25%;">
        <div style="display:table;height:100%;width:99%;">
            <div style="display:table-cell;vertical-align:bottom;height:100%;width:99%;">
                <div style="padding: 5px;margin-top:10px;text-align:right" class="border_${sessionScope[sessionUser].theme}">
                    <span style="font-weight:bold;margin-right:5px;color: #<c:if test='${sessionScope[sessionUser].theme == "soria"}'>336699</c:if><c:if test='${sessionScope[sessionUser].theme == "tundra"}'>606060</c:if><c:if test='${sessionScope[sessionUser].theme == "nihilo"}'>CC6600</c:if>"><iwebmvc:message argMessage="ui.project.all" /></span>
                    <a href="<c:url value="/rss" />"><img style="vertical-align:middle;width:28px;height:28px" src="<c:url value="/resource.iwebmvc?file=/images/rss_" />${sessionScope[sessionUser].theme}.png" alt="RSS 2.0" /></a>
                    <a href="http://fusion.google.com/add?source=atgs&feedurl=${iwebmvc:getApplicationUrl(pageContext.request)}<c:url value="/rss" />"><img style="vertical-align:middle" src="<c:url value="/resource.iwebmvc?file=/images/google_" />${sessionScope[sessionUser].theme}.png" alt="Google Reader" title="Google Reader" /></a>
                </div>
            </div>
        </div>
    </div>
</div>